@import '../../style/mixin.scss';
@import '../../style/iconfont/iconfont.css';

@keyframes tipMove { // 动画效果
  0% {
    transform: scale(1)
  }
  35% {
    transform: scale(.8)
  }
  70% {
    transform: scale(1.1)
  }
  100% {
    transform: scale(1)
  }
}

.alert-container { // 遮罩层
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;

  .alert-mask {
    @include wh(100%, 100%);
    @include positionCenter;
    background: rgba(0, 0, 0, 0.6);

  }

  .tip-text-wrap {
    @include flex;
    width: 2.8rem;
    position: absolute;
    top: 30%;
    left: 50%;
    margin-left: -1.4rem;
    animation: tipMove .4s;
    background-color: rgba(255, 255, 255, 1);
    padding-top: .2rem;
    border: 1px;
    flex-direction: column;
    border-radius: .1rem;

    .tip-icon {
      @include wh(0.4rem, 0.4rem);
      border: .015rem solid #f8cb86;
      border-radius: 50%;
      @include flex;
      flex-direction: column;
      // 感叹号
      span:nth-of-type(1) {
        @include wh(.016rem, .15rem);
        background-color: #f8cb86;
      }

      span:nth-of-type(2) {
        @include wh(.016rem, .016rem);
        background-color: #f8cb86;
        border-radius: 50%;
        border: 1px;
        margin-top: .04rem;
      }
    }

    .tip-text {
      @include font(.17rem, #333);
      text-align: center;
      margin: 0.3rem 0.16rem 0.4rem;
    }

    .confirm {
      width: 100%;
      padding: 0.09rem 0;
      @include font(.15rem, #fff);
      font-weight: bold;
      background-color: #4cd964;
      text-align: center;
      border: 1px;
      border-bottom-left-radius: .1rem;
      border-bottom-right-radius: .1rem;
    }

    .logout {
      @include flex(space-between);
      margin: .1rem auto;

      div:nth-of-type(1) {
        @include wh(1rem, .4rem);
        line-height: .4rem;
        border-radius: 5px;
        @include font(0.14rem, #fff, center);
        background: #aaa;
      }

      div:nth-of-type(2) {
        @include wh(1rem, .4rem);
        line-height: .4rem;
        border-radius: 5px;
        @include font(0.14rem, #fff, center);
        background: #d8584a;
        margin-left: 0.2rem;
      }
    }
  }

}